#include "server.h"
#include "ui_server.h"
#include <QtNetwork>
#include <QDebug>
#include <QtSql>
#include <QTableView>


server::server(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialog)
{
    ui->setupUi(this);
    tcpServer = new QTcpServer(this);
    client = new QTcpSocket(this);

    tcpServer->listen(QHostAddress::LocalHost, 27015);
    qDebug() << "Server up: " << tcpServer->serverAddress() << " " << tcpServer->serverPort();




}




server::~server()
{
    delete ui;
}


